package com.veepeak.server.domain;

import com.veepeak.server.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@DynamicUpdate
@DynamicInsert
@Table(name = "user")
@Data
@EqualsAndHashCode(callSuper = false)
@ToString
public class User extends BaseEntity {
    private String email;
    private String password;
    private boolean isEmailValidated; //邮箱是否验证
    private String emailValidateCode;
    private String emailValidateCodeTime;
    private String nickname;
    private String avatar;
}
